from django.contrib import admin
from aicourseapp.models import *

# Register your models here.
class UserInfoAdmin(admin.ModelAdmin):
    list_display = ['username', 'password']

class LunBoTuAdmin(admin.ModelAdmin):
    list_display = ['img', 'link']

class ShiZhanTuiJianAdmin(admin.ModelAdmin):
    list_display = ['img', 'link','label','hot','title','sort','level','number']

class NewClassAdmin(admin.ModelAdmin):
    list_display = ['img', 'link','label','new','title','sort','level','number']

class NewEntryAdmin(admin.ModelAdmin):
    list_display = ['img', 'link','label','new','title','sort','level','number']

class SkillUpAdmin(admin.ModelAdmin):
    list_display = ['img', 'link','label','new','title','sort','level','number']

class CuttingEdgeAdmin(admin.ModelAdmin):
    list_display = ['img', 'link','label','new','title','sort','level','number']

class SubTypeInfoAdmin(admin.ModelAdmin):
    list_display = ['sttype','stlink']

class SubClassInfoAdmin(admin.ModelAdmin):
    list_display = ['img', 'label','title','level','number','content','sctype','click']

admin.site.register(UserInfo,UserInfoAdmin)
admin.site.register(LunBoTu,LunBoTuAdmin)
admin.site.register(ShiZhanTuiJian,ShiZhanTuiJianAdmin)
admin.site.register(NewClass,NewClassAdmin)
admin.site.register(NewEntry,NewEntryAdmin)
admin.site.register(SkillUp,SkillUpAdmin)
admin.site.register(CuttingEdge,CuttingEdgeAdmin)
admin.site.register(SubTypeInfo,SubTypeInfoAdmin)
admin.site.register(SubClassInfo,SubClassInfoAdmin)